/*
 * @Descripttion: 
 * @Author: liuYaoYu
 * @Date: 2021-12-12 00:00:34
 * @LastEditors: liuYaoYu
 * @LastEditTime: 2021-12-12 10:20:32
 */
package utils

func Calc(n1 float64 , n2 float64 , oper byte)(float64){
	var result float64 
	switch oper{
	 case '*':
		result = n1*n2
	case '/':
		result = n1/n2
	case '+':
		result = n1+n2
	case '-':
		result = n1-n2
		default:
			result=0.00
	}
	return result
}